package com.amap.api.col.s;

import com.amap.api.col.s.ew;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/* compiled from: ThreadPool.java */
/* loaded from: classes.dex */
public final class ex extends ez {
    private static ex c = new ex(new ew.a().a("amap-global-threadPool").a());

    public static ex a() {
        return c;
    }

    private ex(ew ewVar) {
        try {
            this.a = new ThreadPoolExecutor(ewVar.a(), ewVar.b(), ewVar.d(), TimeUnit.SECONDS, ewVar.c(), ewVar);
            this.a.allowCoreThreadTimeOut(true);
        } catch (Throwable th) {
            df.c(th, "TPool", "ThreadPool");
            th.printStackTrace();
        }
    }
}
